Optimal. Leaf size=236 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)+b}}\right )}{a^{5/2} f}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{3 a^2 f (a+b)^3}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{3 a^2 f (a+b)^4}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 f (a+b)^2 \sqrt {a+b \tan ^2(e+f x)+b}}-\frac {b \cot ^3(e+f x)}{3 a f (a+b) \left (a+b \tan ^2(e+f x)+b\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.48, antiderivative size = 236, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4141, 1975, 472, 579, 583, 12, 377, 203} \[ -\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{3 a^2 f (a+b)^3}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{3 a^2 f (a+b)^4}+\frac {\tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)+b}}\right )}{a^{5/2} f}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 f (a+b)^2 \sqrt {a+b \tan ^2(e+f x)+b}}-\frac {b \cot ^3(e+f x)}{3 a f (a+b) \left (a+b \tan ^2(e+f x)+b\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 203
Rule 377
Rule 472
Rule 579
Rule 583
Rule 1975
Rule 4141
Rubi steps
\begin {align*} \int \frac {\cot ^4(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{5/2}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{x^4 \left (1+x^2\right ) \left (a+b \left (1+x^2\right )\right )^{5/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x^4 \left (1+x^2\right ) \left (a+b+b x^2\right )^{5/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}+\frac {\operatorname {Subst}\left (\int \frac {3 (a-b)-6 b x^2}{x^4 \left (1+x^2\right ) \left (a+b+b x^2\right )^{3/2}} \, dx,x,\tan (e+f x)\right )}{3 a (a+b) f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {\operatorname {Subst}\left (\int \frac {3 \left (a^2-10 a b-3 b^2\right )-12 b (3 a+b) x^2}{x^4 \left (1+x^2\right ) \sqrt {a+b+b x^2}} \, dx,x,\tan (e+f x)\right )}{3 a^2 (a+b)^2 f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^3 f}-\frac {\operatorname {Subst}\left (\int \frac {3 (a-b) \left (3 a^2+14 a b+3 b^2\right )+6 b \left (a^2-10 a b-3 b^2\right ) x^2}{x^2 \left (1+x^2\right ) \sqrt {a+b+b x^2}} \, dx,x,\tan (e+f x)\right )}{9 a^2 (a+b)^3 f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^4 f}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^3 f}+\frac {\operatorname {Subst}\left (\int \frac {9 (a+b)^4}{\left (1+x^2\right ) \sqrt {a+b+b x^2}} \, dx,x,\tan (e+f x)\right )}{9 a^2 (a+b)^4 f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^4 f}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^3 f}+\frac {\operatorname {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {a+b+b x^2}} \, dx,x,\tan (e+f x)\right )}{a^2 f}\\ &=-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^4 f}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^3 f}+\frac {\operatorname {Subst}\left (\int \frac {1}{1+a x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b+b \tan ^2(e+f x)}}\right )}{a^2 f}\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+b+b \tan ^2(e+f x)}}\right )}{a^{5/2} f}-\frac {b \cot ^3(e+f x)}{3 a (a+b) f \left (a+b+b \tan ^2(e+f x)\right )^{3/2}}-\frac {b (3 a+b) \cot ^3(e+f x)}{a^2 (a+b)^2 f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {(a-b) \left (3 a^2+14 a b+3 b^2\right ) \cot (e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^4 f}-\frac {\left (a^2-10 a b-3 b^2\right ) \cot ^3(e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{3 a^2 (a+b)^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 13.95, size = 234, normalized size = 0.99 \[ \frac {\sec ^5(e+f x) (a \cos (2 e+2 f x)+a+2 b)^{5/2} \tan ^{-1}\left (\frac {\sqrt {a} \sin (e+f x)}{\sqrt {-a \sin ^2(e+f x)+a+b}}\right )}{4 \sqrt {2} a^{5/2} f \left (a+b \sec ^2(e+f x)\right )^{5/2}}-\frac {\sec ^5(e+f x) (a \cos (2 (e+f x))+a+2 b)^3 \left (\frac {4 b^3 \sin (e+f x) \left (6 a^2+2 a (3 a+b) \cos (2 (e+f x))+13 a b+3 b^2\right )}{a^2 (a \cos (2 (e+f x))+a+2 b)^2}+(a+b) \csc ^3(e+f x)-4 (a+3 b) \csc (e+f x)\right )}{24 f (a+b)^4 \left (a+b \sec ^2(e+f x)\right )^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 13.45, size = 1579, normalized size = 6.69 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot \left (f x + e\right )^{4}}{{\left (b \sec \left (f x + e\right )^{2} + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 2.49, size = 15128, normalized size = 64.10 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F(-1)] time = 0.00, size = -1, normalized size = -0.00 \[ \text {Hanged} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot ^{4}{\left (e + f x \right )}}{\left (a + b \sec ^{2}{\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________